import request from "@/config/axios";
//创建菜单
export function addMenu(data: any) {
  return request.post({
    url: "/createRouter",
    data,
  });
}
//查询全部菜单
export function getMenuList(data: any) {
  return request.post({
    url: "/getPageRouterList",
    data,
  });
}
//删除菜单
export function deleteMenu(data: any) {
  return request.post({
    url: "/deleteRouter",
    data,
  });
}
//编辑菜单
export function editMenu(data: any) {
  return request.post({
    url: "/updateRouter",
    data,
  });
}
